package com.sokal.easycare.modules.product.entity.product;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sokal.easycare.common.persistence.DataEntity;
import com.sokal.easycare.modules.order.entity.UserOrder;
import com.sokal.easycare.modules.sys.entity.MainUser;

/**
 * 产品评论Entity
 * 
 * @author liliangdong
 * @version 2017-04-08
 */
public class ProComment extends DataEntity<ProComment> {

	private static final long serialVersionUID = 1L;
	private ProProduct proProduct; // 所属产品
	private UserOrder userOrder; // 所属订单
	private Integer productScore; // 产品得分
	private Integer serviceScore; // 服务得分
	private Integer descriptionScore; // 描述得分

	private Date beginCreateDate; // 开始 创建日期
	private Date endCreateDate; // 结束 创建日期
	protected MainUser createUser; // 创建者

	public ProComment() {
		super();
	}

	public ProComment(String id) {
		super(id);
	}

	public ProComment(ProProduct proProduct) {
		this.proProduct = proProduct;
	}

	@JsonIgnore
	public ProProduct getProProduct() {
		return proProduct;
	}

	public void setProProduct(ProProduct proProduct) {
		this.proProduct = proProduct;
	}

	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}

	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}

	public UserOrder getUserOrder() {
		return userOrder;
	}

	public void setUserOrder(UserOrder userOrder) {
		this.userOrder = userOrder;
	}

	public Integer getProductScore() {
		return productScore;
	}

	public void setProductScore(Integer productScore) {
		this.productScore = productScore;
	}

	public Integer getServiceScore() {
		return serviceScore;
	}

	public void setServiceScore(Integer serviceScore) {
		this.serviceScore = serviceScore;
	}

	public Integer getDescriptionScore() {
		return descriptionScore;
	}

	public void setDescriptionScore(Integer descriptionScore) {
		this.descriptionScore = descriptionScore;
	}

	public MainUser getCreateUser() {
		return this.createBy;
	}

	public void setCreateUser() {
		this.createUser = createBy;
	}

}